package com.woniu.car.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author *********
 * @since 2021-06-21
 */
@Data
public class ServiceParam {


    /**
     * 商家id
     */
    @NotNull(message = "商店ID不能为空")
    @ApiModelProperty(value = "商家id",example = "1")
    private Integer shopId;

    /**
     * 服务名
     */
    @NotNull(message = "服务名不能为空")
    @ApiModelProperty(value = "服务名")
    private String serviceName;

    /**
     * 服务详情
     */
    @Size(min=0, max=300, message = "详情内容大小有误")
    @ApiModelProperty(value = "服务详情")
    private String description;

    /**
     * 服务价格
     */
    @Min(value = 0, message = "价格设置有误")
    @ApiModelProperty(value = "服务价格",example = "0.0")
    private Double servicePrice;

//    /**
//     * 服务分类id
//     */
//    @NotNull(message = "分类ID不能为空")
//    @ApiModelProperty(value = "分类ID",example = "1")
//    private Integer typeId;

    /**
     * 服务图片
     */
    @ApiModelProperty(value = "服务图片")
    private String image;




}
